<?php
/**
 * @version		$Id: qeries.php 2011.08.11 thierry $
 * @package		admin.models
 * @subpackage	com_projid
 * @copyright	Copyright (C) 2011 Pojid All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */
// No direct access to this file
defined('_JEXEC') or die('Restricted access');

// import the Joomla modellist library
jimport('joomla.application.component.modellist');


class ProjidModelQueries extends JModelList
{

	protected function getListQuery() 
	{
		// Create a new query object.
		$db = JFactory::getDBO();
		$query = $db->getQuery(true);

		// Select some fields
		$query->select('id_que,desc_que,requete,server_id,desc_serv');

		// From the hello table
		$query->from('#__projid_requete');
		
		$query->leftjoin('#__projid_server on #__projid_requete.server_id=#__projid_server.id_serv');
		return $query;
	}
}